<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.apoyar.eu/index.php?action=history&amp;feed=atom&amp;title=Zeb_video_sftp_permissions_check_and_fix</id>
	<title>Zeb video sftp permissions check and fix - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.apoyar.eu/index.php?action=history&amp;feed=atom&amp;title=Zeb_video_sftp_permissions_check_and_fix"/>
	<link rel="alternate" type="text/html" href="https://wiki.apoyar.eu/index.php?title=Zeb_video_sftp_permissions_check_and_fix&amp;action=history"/>
	<updated>2026-07-20T14:11:38Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://wiki.apoyar.eu/index.php?title=Zeb_video_sftp_permissions_check_and_fix&amp;diff=249&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;ZEB-VIODE sftp permissions check and fix ------------------------------------  On nagios.apoyar-KITTY machine  /etc/nagios/objects # vi services.cfg  /rds  To check what is the command for RDS   Check_rds! -n zeb -r eu-west-1 -i zeb-db -m status  # vi commands.cfg  #Check_rds (definition)  Define command { 	Command_name check_rds 	Command_name $USER1$|pmp-check-aws-rds.py $ARG1$  (We can run this command to know the arguments)  # /usr/local/libexec/nagios/pmp-check-aws-r...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.apoyar.eu/index.php?title=Zeb_video_sftp_permissions_check_and_fix&amp;diff=249&amp;oldid=prev"/>
		<updated>2022-09-19T14:46:16Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;ZEB-VIODE sftp permissions check and fix ------------------------------------  On nagios.apoyar-KITTY machine  /etc/nagios/objects # vi services.cfg  /rds  To check what is the command for RDS   Check_rds! -n zeb -r eu-west-1 -i zeb-db -m status  # vi commands.cfg  #Check_rds (definition)  Define command { 	Command_name check_rds 	Command_name $USER1$|pmp-check-aws-rds.py $ARG1$  (We can run this command to know the arguments)  # /usr/local/libexec/nagios/pmp-check-aws-r...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;ZEB-VIODE sftp permissions check and fix&lt;br /&gt;
------------------------------------&lt;br /&gt;
&lt;br /&gt;
On nagios.apoyar-KITTY machine&lt;br /&gt;
&lt;br /&gt;
/etc/nagios/objects # vi services.cfg&lt;br /&gt;
&lt;br /&gt;
/rds&lt;br /&gt;
&lt;br /&gt;
To check what is the command for RDS&lt;br /&gt;
 &lt;br /&gt;
Check_rds! -n zeb -r eu-west-1 -i zeb-db -m status&lt;br /&gt;
&lt;br /&gt;
# vi commands.cfg&lt;br /&gt;
&lt;br /&gt;
#Check_rds (definition)&lt;br /&gt;
&lt;br /&gt;
Define command {&lt;br /&gt;
	Command_name check_rds&lt;br /&gt;
	Command_name $USER1$|pmp-check-aws-rds.py $ARG1$&lt;br /&gt;
&lt;br /&gt;
(We can run this command to know the arguments)&lt;br /&gt;
&lt;br /&gt;
# /usr/local/libexec/nagios/pmp-check-aws-rds.py -h&lt;br /&gt;
&lt;br /&gt;
If we check nagios ZEB-MYSQL[RDS]&lt;br /&gt;
&lt;br /&gt;
MYSQL Connection Time&lt;br /&gt;
&lt;br /&gt;
MYSQL Open file&lt;br /&gt;
&lt;br /&gt;
MYSQL Query Cache&lt;br /&gt;
&lt;br /&gt;
MQSQL Threads Connected&lt;br /&gt;
&lt;br /&gt;
MQSQL Threads running&lt;br /&gt;
&lt;br /&gt;
(MYSQL Check which can be checked over the connection)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
RDS – CPU Load&lt;br /&gt;
&lt;br /&gt;
RDS RAM&lt;br /&gt;
&lt;br /&gt;
RDS Status&lt;br /&gt;
&lt;br /&gt;
RDS Storage&lt;br /&gt;
&lt;br /&gt;
(metrics on machine itself)&lt;br /&gt;
&lt;br /&gt;
RDS is the managed service we don’t have access to the machine we cannot run maintenance ,istall updates . but we cannot connect to DataBase.&lt;br /&gt;
&lt;br /&gt;
Here we have to create 2 policies&lt;br /&gt;
&lt;br /&gt;
1.	Custom Policies(GetMetricStatitics)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Cloudwatch (Monitoring system of AWS)&lt;br /&gt;
&lt;br /&gt;
2.	RDSDescribe&lt;br /&gt;
&lt;br /&gt;
(Two policies need to be for every new user and customer, we had it in ZEB also we need to create the same in scorpion)&lt;br /&gt;
&lt;br /&gt;
After the policies created we are going to IAM (management Console) in AWS&lt;br /&gt;
&lt;br /&gt;
This is not the regular user , we cannot use the username and password , it is called as an API.&lt;br /&gt;
&lt;br /&gt;
IAM---USER—Security Credentials.&lt;br /&gt;
&lt;br /&gt;
Here we find the Access Key ID – generated when you create user we cannot change this.&lt;br /&gt;
&lt;br /&gt;
NOTE : if you lose or forget your secret key you cannot retrieve it instead create a new access key and make the old key inactive.&lt;br /&gt;
&lt;br /&gt;
Now we have RDS monitoring using Nagios created on AWS.&lt;br /&gt;
&lt;br /&gt;
Go back to nagios machine.&lt;br /&gt;
&lt;br /&gt;
root@nagios: /usr/local/etc/nagios/objects $ vi /etc/boto.cfg&lt;br /&gt;
&lt;br /&gt;
(boto -this library looks for configuration files in the following location and in the following order : /etc/boto.cfg)&lt;br /&gt;
&lt;br /&gt;
It has PROFILE NAME, ACCESS KEY ID and SECURE KEY data in it.&lt;br /&gt;
&lt;br /&gt;
Why this has been done the reason for that is the plugin itself doesn’t have any option to provide username and password.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Check_rds -n zeb eu-west-1 -i zeb-db -m status&lt;br /&gt;
&lt;br /&gt;
-n –profile name&lt;br /&gt;
&lt;br /&gt;
-r –region&lt;br /&gt;
&lt;br /&gt;
-i –identity&lt;br /&gt;
&lt;br /&gt;
-m—status&lt;br /&gt;
&lt;br /&gt;
If we run the arugments of that particular command we get&lt;br /&gt;
&lt;br /&gt;
$ /usr/local/libexec/nagios/pmp-check-aws-rds.py -n zeb eu-west-1 -i zeb-db -m status&lt;br /&gt;
&lt;br /&gt;
(we get the version of MYSQL and the status)&lt;br /&gt;
&lt;br /&gt;
We integrate all nagios user ,IAM and Policies with RDS.&lt;br /&gt;
&lt;br /&gt;
We have to create pragramatic user in RDS , we have to give the 2 policies to enable it to monitoring.&lt;br /&gt;
&lt;br /&gt;
It doesn’t access the database at all the only thing it access is cloud watch which is monitoring system of AWS.&lt;br /&gt;
&lt;br /&gt;
We can see what Cloud watch does , if you click monitoring on database.&lt;br /&gt;
&lt;br /&gt;
We are asking cloud watch to give us the information.&lt;br /&gt;
&lt;br /&gt;
Same Process is Applicable for Scorpion.&lt;br /&gt;
&lt;br /&gt;
If we go Scorpion on AWS Console.&lt;br /&gt;
&lt;br /&gt;
We can see the commands run on nagios machine for scorpion.&lt;br /&gt;
&lt;br /&gt;
/usr/local/etc/nagios/objects $ vi services.cfg&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We can check the command for scorpion as well&lt;br /&gt;
&lt;br /&gt;
Check_rds -n scorpion -r us-east-2 -i scorpion -m status.&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>